package com.kkb.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class SpringMvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("pages/index");//主页面
        registry.addViewController("/login").setViewName("login");//登录页面
        registry.addViewController("/userList").setViewName("pages/userList");//用户列表
        registry.addViewController("/comList").setViewName("pages/comList");//企业管理
        registry.addViewController("/industryList").setViewName("pages/industryList");//方向管理
        registry.addViewController("/questionBasicList").setViewName("pages/questionBasicList");//题库管理
        registry.addViewController("/questionClassicList").setViewName("pages/questionClassicList");//精选题库
        registry.addViewController("/courseList").setViewName("pages/courseList");//学科管理



    }
}
